//
//  NextFeedSettingInfo.m
//  IOTCamViewer
//
//  Created by tutk on 12/16/11.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import "PresetInfo.h"

@implementation PresetInfo

@synthesize presetID;
@synthesize presetIsValid;
@synthesize presetAlias;

- (id)initWithPresetInfoType:(int)type  {
    
    self = [super init];
    
    if (self) {
        
        self.presetID = 0;
        self.presetIsValid = 0;
        self.presetAlias = [[NSString alloc] initWithFormat:@""];

    }
    
    return self;
}

- (void)dealloc {
    
    self.presetAlias = nil;
}

- (id)initWithName:(NSString *)theName
           presetID:(NSInteger)presetID_
            presetIsValid:(NSUInteger)presetIsValid_
           presetAlias:(NSString *)presetAlias_
{
    
    self = [super init];
    
    if (self){
        self.presetID = presetID_;
        self.presetIsValid = presetIsValid_;
        self.presetAlias = presetAlias_;
    }
    
    return self;
}


- (id)copyWithZone:(NSZone *)zone
{
    PresetInfo *info = [[PresetInfo allocWithZone:zone]
                        initWithName:nil
                        
                        presetID:[self presetID]
                        
                        presetIsValid:[self presetIsValid]
                        
                        presetAlias:[self presetAlias]

                        ];
    
    return info;
}

@end
